package com.xxx.blog.controller;

import com.xxx.base.utils.R;
import com.xxx.blog.service.IParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/param")
@Api("系统参数接口")
public class ParamController {
    @Autowired
    IParamService paramService;

    @ApiOperation("查询参数集合")
    @GetMapping("/map")
    public R<Map<String, String>> getParam(){
        Map<String,String> paramMap= paramService.getParamMap();
        return R.ok(paramMap);
    }}
